Received: from zeus (zeus.usq.edu.au [139.86.128.2]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id BAA12493 for <blitz-list@helsinki.fi>; Thu, 18 Aug 1994 01:31:11 +0300
Received: from helios.usq.edu.au (helios) by zeus with SMTP id AA12663
(5.65c/IDA-1.4.4 for <blitz-list@helsinki.fi>); Thu, 18 Aug 1994 08:22:57 -1000
Message-Id: <199408181822.AA12663@zeus>
Received: by helios.usq.edu.au
From: "neil o'rourke" <orourke@zeus.usq.edu.au>
Subject: Moving Bitplanes
To: blitz-list@helsinki.fi
Date: Thu, 18 Aug 1994 08:16:42 +1000 (EST)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Status:
Status: O
> > >
> > > How can I move an individual bitplane in a bitmap??
> > >
>
> > What do you mean exactly, "move an individual bitplane in a bit map"?
>
> > You can simulate this effect by having a large off-screen bitmap, and
> > copy over (or blit over) the section needed into the specified bitmap.
>
> > If this is what you want, I've written some code to allow you use the
> > blitter for this purpose.
>
> What I would like, is to be able to draw into a specific bitplane
> (using BitPlanesBitMap), and then scrolling this individual
> bitplane around on top of the existing bitmap.
>
> I would greatly appreciate looking at your code, to see if that
> does the trick! Thanks.
I don't know if this is really what you want, but it might give you
ideas. This code uses the blitter directly to move data around a
bitplane, and could simulate the effect you are after.
This code runs under Intuition, but I didn't bother protecting myself
with a call to OwnBlitter() and DisownBlitter(). The routines adapt
themselves to whatever strange bitmaps you care to toss at it, and even